---
- name: "[{{ name }}] Create config"
  vars:
    config_file: "{{ lookup('file', '{{ name }}/{{ config_item }}.j2') }}"
  community.docker.docker_config:
    name: "{{ config_item  }}"
    data: "{{ config_file | b64encode }}"
    labels:
      secret: "{{ config_file | hash('sha1') }}"
    data_is_b64: true
    state: present